<?php $this->load->view('inc/header.php');?>
<?php $this->load->view('product/inc_sm.php');?>

<div class="col-right">
	<div class="panel-filter">
		<form action="" method="get">
		<input type="hidden" name="c" value="product"/>
		<input type="hidden" name="m" value="index"/>
		<table width="100%">
			<tr>
				<td>编号：<input name="no" value="<?php echo fd('p.no');?>"/></td>
				<td align="right" width="100px"><input type="submit" value="搜索"/></td>
			</tr>	
		</table>
		</form>
	</div>
	<div class="box">
		<div class="box-t">商品列表</div>
		<div class="box-c" id="cat-tree">
			<table class="tbl-list">
				<thead>
					<tr>	
						<th width="60px">图片</th>
						<th>编号</th>
						<th width="200px">操作</th>
					</tr>
				</thead>
				<tbody>
					
					<?php foreach ($list as $k => $v):?>
					<tr>	
						<td><img width="50" src="<?php echo $base_url.fd('v.img_row.l','na',$v);?>"/></td>
						<td><?php echo $v->no;?></td>
						<td>
							<a class="btn-ajax-confirm" msg="确定要删除吗？" 
								href="<?php echo site_url('c=product&m=del_do&id='.$v->id);?>">删除</a>
							&nbsp;
							<a  href="<?php echo site_url('c=product&m=add&id='.$v->id);?>">编辑</a>

						</td>
					</tr>
					<?php endforeach;?>
				</tbody>					
			</table>
			<?php echo $pagenav;?>
		</div>
	</div>
</div>

<?php $this->load->view('inc/footer.php');?>
